Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application will load without current user (will not change routing o… #199

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Hedin244
Copy link
Collaborator

@Hedin244 Hedin244 commented Jun 6, 2024

…n loading logged in data)

Comment on lines 29 to 33
if (value && value.length > 0 && value[0]) {
setHash('selectedHandle', value[0]);
} else {
setHash('selectedHandle', null);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setHash(value?.[0] ?? null)

@@ -39,7 +52,7 @@ export const NewTransaction: FC = () => {

const onAmountChanged = (val: string): void => {
const value = parseInt(val);
setAmount(Number.isNaN(value) ? 0 : value);
handleSetAmount(Number.isNaN(value) ? 0 : value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the expression in brackets is probably the reason why you cannot remove 0 from the form, we could as well fix it now

@mivalsten mivalsten force-pushed the main branch 3 times, most recently from 3fa6df3 to d21b76a Compare November 20, 2024 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants