diff --git a/sample-site/migrations/testMigration.js b/sample-site/migrations/testMigration.js
index fcba9a3e1f99979811366f707ea8df11659475fd..1c21e5746492e373a4df9a346cc2c5b901cb8f03 100644
--- a/sample-site/migrations/testMigration.js
+++ b/sample-site/migrations/testMigration.js
@@ -84,7 +84,7 @@ function testMigration(steppingTimeSpeed) {
 
     // do not use a colour palette on certain services 
     if (window.location.pathname.split('/')[1] === 'arrayexpress') {
-      break;
+      return;
     }
 
     // Define array of object pairs