Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
fix(messages): fixes custom messages not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenserJ authored and KnisterPeter committed Jan 4, 2019
1 parent d61c5a5 commit 3a423ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class ConventionalCommitMessage {
}

private static hasCustomMessage(czConfig: CzConfig|undefined, messageType: string ): czConfig is CzConfig {
return Boolean(czConfig && czConfig.messages && czConfig.hasOwnProperty(messageType));
return Boolean(czConfig && czConfig.messages && czConfig.messages.hasOwnProperty(messageType));
}

private readonly czConfig: CzConfig|undefined;
Expand Down

0 comments on commit 3a423ec

Please sign in to comment.