Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prasetya Saputra
clone_excelso
Commits
c874d5d8
Commit
c874d5d8
authored
Sep 28, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benerin reward detail
parent
e60f9689
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
RewardDetail.js
view/RewardDetail.js
+22
-14
No files found.
view/RewardDetail.js
View file @
c874d5d8
...
...
@@ -105,17 +105,25 @@ class RewardDetail extends React.Component {
}).
catch
(
error
=>
{
try
{
let
response
=
error
.
response
.
data
;
if
(
response
.
code
==
"REWARD_CANNOT_BE_USED"
)
{
this
.
setState
({
spinner
:
false
,
})
this
.
props
.
navigation
.
navigate
(
'Home'
,
{
screen
:
'MENU'
})
}
else
{
Alert
.
alert
(
''
,
response
.
msg
,
[
{
text
:
"OK"
,
onPress
:
()
=>
this
.
setState
({
spinner
:
false
})
}
{
text
:
"OK"
,
onPress
:
()
=>
this
.
setState
({
spinner
:
false
})
}
],
);
// FUNGSI REDUX UNTUK HAPUS VOUCHER
this
.
props
.
removeVoucher
()
}
}
catch
(
error
)
{
Alert
.
alert
(
""
,
error
.
toString
())
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment