File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
frontend/src/features/permits/pages/Amend Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ const searchRoute =
82
82
83
83
export const AmendPermit = ( ) => {
84
84
const { permitId : permitIdParam , companyId : companyIdParam } = useParams ( ) ;
85
-
85
+ const { idirUserDetails } = useContext ( OnRouteBCContext ) ;
86
86
const { state : stateFromNavigation } = useLocation ( ) ;
87
87
88
88
const companyId : number = applyWhenNotNullable (
@@ -221,11 +221,11 @@ export const AmendPermit = () => {
221
221
] ,
222
222
) ;
223
223
224
+
224
225
if ( isLoadingState ( ) ) {
225
226
return < Loading /> ;
226
227
}
227
228
228
- const { idirUserDetails } = useContext ( OnRouteBCContext ) ;
229
229
230
230
// unable to use permission matrix in this component, using manual role check instead
231
231
const canAmendPermit = ( role ?: string ) => {
You can’t perform that action at this time.
0 commit comments