File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export default function App() {
53
53
const location = useLocation ( )
54
54
const { push } = useHistory ( )
55
55
const didMountRef = useRef ( false )
56
- const isDirectApprovalNotification = location . pathname && location . pathname . includes ( 'approve' ) && location . search && location . search . includes ( ' ?token=' )
56
+ const isDirectApprovalNotification = location . pathname && location . pathname . includes ( 'approve' ) && location . search && location . search . includes ( ` ?token=${ approvalToken } ` )
57
57
58
58
function onlineToast ( toastBody : JSX . Element , options ) {
59
59
if ( onlineToastRef . current && toast . isActive ( onlineToastRef . current ) ) {
@@ -129,7 +129,7 @@ export default function App() {
129
129
useEffect ( ( ) => {
130
130
// If not K8S_CLIENT then validateToken otherwise directly redirect
131
131
if ( ! window . _env_ . K8S_CLIENT ) {
132
- // Pass validation for direct email approval notification
132
+ // By Passing validations for direct email approval notifications
133
133
if ( isDirectApprovalNotification ) {
134
134
redirectToDirectApprovalNotification ( )
135
135
} else {
You can’t perform that action at this time.
0 commit comments