Skip to content

Commit

Permalink
fix : remove condition using mockapi on mixion popup complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
marsellavaleria19 committed Oct 11, 2024
1 parent 0ad3ccd commit 98e9ba4
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions mixins/popup-aduan-masuk.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,17 +443,10 @@ export default {
const urlApi = `${ENDPOINT_ADUAN}/${this.idApi}/${pathApi}`

try {
if (this.typeDialog === 'redirectHotlineComplaint') {
await this.$mockApi.patch(urlApi, {
...paramsInputRequest,
user_id: this.$auth?.user?.identifier,
})
} else {
await this.$axios.patch(urlApi, {
...paramsInputRequest,
user_id: this.$auth?.user?.identifier,
})
}
await this.$axios.patch(urlApi, {
...paramsInputRequest,
user_id: this.$auth?.user?.identifier,
})
this.setDataDialog({ ...paramDialog.success })
this.setIconPopup({ name: 'check-mark-circle', fill: '#069550' })
} catch {
Expand Down

0 comments on commit 98e9ba4

Please sign in to comment.