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

Commit

Permalink
Merge branch 'release/0.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinballard committed Oct 3, 2019
2 parents f09535b + 18855a2 commit e6b2aa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ export class Custard {

beforeModulesInit() {
this.modules.forEach(module => {
if (typeof module.beforeInit === 'function') {
module.beforeInit();
if (module.steps().includes(this.step)) {
if (typeof module.beforeInit === 'function') {
module.beforeInit();
}
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@discolabs/custard-js",
"version": "0.0.5",
"version": "0.0.6",
"description": "Javascript library for standardising Shopify checkout customisations.",
"main": "index.js",
"author": "Gavin Ballard",
Expand Down

0 comments on commit e6b2aa2

Please sign in to comment.