From a70fa799052acb7144edc692f713d74feab7210b Mon Sep 17 00:00:00 2001 From: Sam Aryasa Date: Tue, 6 Dec 2016 10:13:21 +0800 Subject: [PATCH] Hides name when it's not required --- src/CreditCardInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CreditCardInput.js b/src/CreditCardInput.js index aac96685..b3e6f32b 100644 --- a/src/CreditCardInput.js +++ b/src/CreditCardInput.js @@ -111,7 +111,7 @@ export default class CreditCardInput extends Component { brand={type} imageFront={imageFront} imageBack={imageBack} - name={name} + name={requiresName ? name : " "} number={number} expiry={expiry} cvc={cvc} />