Skip to content

Commit

Permalink
[web] Disable button when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjooiopa committed May 4, 2024
1 parent fc4e1fb commit 061c955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/app/(auth)/receive/Receive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Receive: FC<{}> = () => {
autoFocus
onChange={(e) => setAmountSat(parseInt(e.target.value.toLowerCase()))}
/>
<Button className="w-full h-[48px] p-3" type="submit">
<Button type="submit" className="w-full h-[48px] p-3" disabled={isLoading}>
{isLoading ? 'Loading...' : 'Create invoice'}
</Button>
</form>
Expand Down

0 comments on commit 061c955

Please sign in to comment.