-
Notifications
You must be signed in to change notification settings - Fork 4
fix: add sponsorship types ddl on show page template popup #799
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
base: master
Are you sure you want to change the base?
Changes from all commits
a5c2ee2
882de3b
070c2ba
2c0477f
0227186
226afc2
6e3472a
0dbcd96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,8 +10,9 @@ const BLOCKED_KEYS = ["e", "E", "+", "-", ".", ","]; | |||||||||||
| const MuiFormikFilesizeField = ({ name, label, ...props }) => { | ||||||||||||
| const [field, meta, helpers] = useField(name); | ||||||||||||
|
|
||||||||||||
| const displayValue = | ||||||||||||
| field.value != null ? Math.floor(field.value / BYTES_PER_MB) : 0; | ||||||||||||
| const displayValue = field.value | ||||||||||||
| ? Math.floor(field.value / BYTES_PER_MB) | ||||||||||||
| : ""; | ||||||||||||
|
Comment on lines
+13
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid treating With the falsy check, a real value of Suggested fix- const displayValue = field.value
- ? Math.floor(field.value / BYTES_PER_MB)
- : "";
+ const displayValue =
+ field.value == null ? "" : Math.floor(field.value / BYTES_PER_MB);📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
|
|
||||||||||||
| const emptyValue = meta.initialValue === null ? null : 0; | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
Uh oh!
There was an error while loading. Please reload this page.