Skip to content

Commit 21caad7

Browse files
committed
update regex
1 parent 6e402f9 commit 21caad7

File tree

1 file changed

+1
-1
lines changed
  • services/static-webserver/client/source/class/osparc/desktop

1 file changed

+1
-1
lines changed

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ qx.Class.define("osparc.desktop.StudyEditor", {
187187
if (err["status"] == 402) {
188188
msg = err["message"];
189189
// The backend might have thrown a 402 because the wallet was negative
190-
const match = msg.match(/Project debt\s([-]?\d+(\.\d+)?)\scredits/);
190+
const match = msg.match(/last transaction of\s([-]?\d+(\.\d+)?)\sresulted/);
191191
let debt = null;
192192
if ("debtAmount" in err) {
193193
// the study has some debt that needs to be paid

0 commit comments

Comments
 (0)