mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-03 07:57:22 +00:00
show placeholder when clearing field
This commit is contained in:
1 parent
87de7c79ff
commit
4cbce6be63
1 file changed
+2
-2
@@ -1116,8 +1116,8 @@ export function AIProviderConfigDialog({
|
||||
id="amount"
|
||||
type="number"
|
||||
step="0.01"
|
||||
value={amount}
|
||||
onChange={(e) => setAmount(Number(e.target.value))}
|
||||
value={amount || ''}
|
||||
onChange={(e) => setAmount(Number(e.target.value) || 0)}
|
||||
placeholder={t('enterAmount')}
|
||||
className="text-center text-lg font-medium"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user