Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Failchon committed Jan 16, 2025
1 parent ad1c11a commit a35a4d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/common/ui/src/components/NumberInputLazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export function NumberInputLazy({
useEffect(() => {
setValue(valueProp?.toString())
}, [valueProp])
const normalizedValue = float ? value.replace(',', '.') : value

const saveValue = () => {
const normalizedValue = float ? value.replace(',', '.') : value
let num = float ? parseFloat(normalizedValue) : parseInt(normalizedValue)
if (isNaN(num)) {
num = 0
Expand Down
1 change: 1 addition & 0 deletions libs/gi/ui/src/components/artifact/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@ export function ArtifactEditor({
>
{t('editor.uploadBtn')}
</Button>
{/* https://github.com/frzyc/genshin-optimizer/pull/2597 */}
<LineBreak />
</label>
</Grid>
Expand Down

0 comments on commit a35a4d0

Please sign in to comment.