aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_button.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 10:23:42 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 10:23:42 +0800
commitbb307a55d347c34ab51144c75721860e13659ecb (patch)
tree5656595aefd51fc153c404de0a4c7249e7fcd569 /packages/instant/src/components/buy_button.tsx
parent667b1e03ddba1a2fac16488239f6bc977fa4cb6d (diff)
downloaddexon-sol-tools-bb307a55d347c34ab51144c75721860e13659ecb.tar.gz
dexon-sol-tools-bb307a55d347c34ab51144c75721860e13659ecb.tar.zst
dexon-sol-tools-bb307a55d347c34ab51144c75721860e13659ecb.zip
questionmark syntax instead of '| undefined'
Diffstat (limited to 'packages/instant/src/components/buy_button.tsx')
-rw-r--r--packages/instant/src/components/buy_button.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx
index 8b2e0e1f6..86c55dbf9 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -19,7 +19,7 @@ export interface BuyButtonProps {
onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void;
onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void;
onBuyFailure: (buyQuote: BuyQuote, txHash: string) => void;
- validateWalletBeforeBuy: (buyQuote: BuyQuote, takerAddress: string | undefined) => Promise<boolean>;
+ validateWalletBeforeBuy: (buyQuote: BuyQuote, takerAddress?: string) => Promise<boolean>;
}
export class BuyButton extends React.Component<BuyButtonProps> {