disable purchase button while purchasing

This commit is contained in:
Sean Yesmunt 2020-05-27 13:46:05 -04:00
parent 217ddea79b
commit 17885eeccd

View file

@ -108,7 +108,8 @@ function ModalAffirmPurchase(props: Props) {
<div className="section__actions" style={success ? { visibility: 'hidden' } : undefined}>
<Button
button="primary"
label={purchasing ? __('Purchasing') : __('Purchase')}
disabled={purchasing}
label={purchasing ? __('Purchasing...') : __('Purchase')}
onClick={onAffirmPurchase}
/>
<Button button="link" label={__('Cancel')} onClick={cancelPurchase} />