fix: don't display buy new stamp button when already in process of buying one (#422)

This commit is contained in:
Vojtech Simetka
2022-06-21 12:31:28 +02:00
committed by GitHub
parent 7c39e2741c
commit 807af122f7
+2
View File
@@ -67,6 +67,7 @@ export function UploadActionBar({
Back To Preview
</SwarmButton>
</ExpandableListItemActions>
{hasAnyStamps && (
<SwarmButton
disabled={stampMode === 'BUY' && !hasAnyStamps}
onClick={() => setStampMode(stampMode === 'BUY' ? 'SELECT' : 'BUY')}
@@ -74,6 +75,7 @@ export function UploadActionBar({
>
{stampMode === 'BUY' ? 'Use Existing Stamp' : 'Buy New Stamp'}
</SwarmButton>
)}
</Grid>
)
}