From 37e7ca5d754b141737e5b7dd1f1da235dde2e0e0 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Fri, 6 Jan 2023 10:59:47 -0800 Subject: [PATCH] no show bomb slider if no bomb --- src/template/Sections.jsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/template/Sections.jsx b/src/template/Sections.jsx index 1a233ad..5173ebe 100644 --- a/src/template/Sections.jsx +++ b/src/template/Sections.jsx @@ -418,18 +418,20 @@ function Section3() {

Sending bombs will burn your BOMB token and kill a BOOMR token at random. Be careful not to kill yourself in the process.

There are {options.unaboomersRadicalized - options.unaboomersKilled} BOOMR available to kill

-

- sendBombsWrite.write?.()}> - {sendBombsWrite.isLoading && <>sending {options.sendBombAmount}} - {sendBombsWrite.isIdle && <>send {options.sendBombPreviewAmount} (~0 Ξ)} - {sendBombsWrite.isSuccess && <>sent} - {sendBombsWrite.isError && <>error} - -

- handleStateChange({sendBombAmount: v})} onChange={(v) => { - handleStateChange({sendBombPreviewAmount: v}); - sendBombsWrite.reset(); - }} /> + {options.bombBalance > 0 && (<> +

+ sendBombsWrite.write?.()}> + {sendBombsWrite.isLoading && <>sending {options.sendBombAmount}} + {sendBombsWrite.isIdle && <>send {options.sendBombPreviewAmount} (~0 Ξ)} + {sendBombsWrite.isSuccess && <>sent} + {sendBombsWrite.isError && <>error} + +

+ handleStateChange({sendBombAmount: v})} onChange={(v) => { + handleStateChange({sendBombPreviewAmount: v}); + sendBombsWrite.reset(); + }} /> + ) ||

no bombs

}