Skip to content

Commit 3d595b8

Browse files
minor bugfix for validator in order iphone
1 parent 1622dde commit 3d595b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/browsergym/workarena/tasks/service_catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def validate(self, page: Page, chat_messages: list[str]) -> tuple[int, bool, str
748748
return 0, False, "", {"message": "The requested quantity is incorrect."}
749749

750750
# go over values
751-
if requested_item["options"][self.FIELD_NAME_MAPPING["monthly_data_allowance"]] != self.config["monthly_data_allowance"]:
751+
if requested_item["options"][self.FIELD_NAME_MAPPING["monthly_data_allowance"]].lower() != self.config["monthly_data_allowance"].lower():
752752
return 0, False, "", {"message": "The requested monthly data allowance is incorrect."}
753753

754754
if requested_item["options"][self.FIELD_NAME_MAPPING["replacement"]] != self.config["replacement"]:

0 commit comments

Comments
 (0)