diff --git a/src/validators/SessionKeyValidator.sol b/src/validators/SessionKeyValidator.sol index df51f530..ecd3138a 100644 --- a/src/validators/SessionKeyValidator.sol +++ b/src/validators/SessionKeyValidator.sol @@ -68,7 +68,7 @@ contract SessionKeyValidator is IValidationHook, IModuleValidator { function init(bytes calldata data) external { // to prevent duplicate inits, since this can be hook plus a validator - if (!_isHookAndModuleInitialized(msg.sender) && data.length != 0) { + if (_isHookAndModuleInitialized(msg.sender) && data.length != 0) { require(_addValidationKey(data), "init failed"); } }