questionmark syntax instead of '| undefined'

This commit is contained in:
Steve Klebanoff
2018-10-26 19:23:42 -07:00
parent 667b1e03dd
commit bb307a55d3

View File

@@ -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> {