refactor: improve stores/config types #3190

Merged
konrad merged 2 commits from WofWca/frontend:refactor into main 2023-03-03 14:37:01 +00:00
Contributor
No description provided.
Member

Hi WofWca!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://3190-refactor--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi WofWca! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://3190-refactor--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
konrad reviewed 2023-03-03 14:11:32 +00:00
@ -84,2 +85,3 @@
setConfig(objectToCamelCase(config))
return config
const success = !!config
return success

Why not Boolean(config)? Or something like Object.keys(config).length > 0?

Why not `Boolean(config)`? Or something like `Object.keys(config).length > 0`?
Author
Contributor

No particular reason. I'm just used to !!, and I tried to keep the logic the same.

No particular reason. I'm just used to `!!`, and I tried to keep the logic the same.

Fair enough.

Fair enough.
konrad marked this conversation as resolved
konrad force-pushed refactor from 986bc56039 to 0954984792 2023-03-03 14:26:03 +00:00 Compare
konrad approved these changes 2023-03-03 14:26:18 +00:00
konrad scheduled this pull request to auto merge when all checks succeed 2023-03-03 14:26:29 +00:00
konrad merged commit 6a3518dace into main 2023-03-03 14:37:01 +00:00
WofWca deleted branch refactor 2023-03-03 17:33:10 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.