Skip to content

Commit 302e71e

Browse files
author
JasmeetLuthra
committed
category change modification
1 parent d991a57 commit 302e71e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pages/admin/products/generateLink.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ class GenerateLink extends React.Component {
223223

224224
if (!category) {
225225
this.setState({
226-
coupons: []
226+
coupons: [],
227+
coupon: ''
227228
})
229+
this.unsetGeneratedLink()
228230
return
229231
}
230232

@@ -240,7 +242,7 @@ class GenerateLink extends React.Component {
240242
}).catch((error) => {
241243
ErrorHandler.handle(error)
242244
})
243-
245+
244246
this.unsetGeneratedLink()
245247
}
246248

0 commit comments

Comments
 (0)