Commit 4f212a7f authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'syadziy' into 'master'

update

See merge request !401
parents a7588044 9a678931
......@@ -57,6 +57,7 @@ export default class BudgetTahunan extends Component {
intent: "",
approverID: null,
pic: '',
submitter: false,
detailRevisiCheck: []
}
this.fileHandler = this.fileHandler.bind(this);
......@@ -266,6 +267,7 @@ export default class BudgetTahunan extends Component {
if (response.data.data) {
this.setState({
submissionID: response.data.data.submission_id, isSubmit: false,
submitter: response.data.data.submitter,
approverID: response.data.data.approve_id, pic: response.data.data.approver == null? '' : response.data.data.approver,
lastStatus: response.data.data.last_status === null ? 'SUBMIT' : response.data.data.last_status
}, () => {
......@@ -964,7 +966,7 @@ export default class BudgetTahunan extends Component {
</div>
</button>
</div> :
this.state.lastStatus === 'SUBMITTED' ?
this.state.lastStatus === 'SUBMITTED' && this.state.submitter ?
<div style={{ borderTop: 'solid 1px #c4c4c4', padding: 10, backgroundColor: '#f5f5f5', width: '100%', display: 'flex', justifyContent: 'flex-end' }} >
<button
style={{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment