diff --git a/app/src/main/java/com/example/shawarma/screens/discount/DiscountScreen.kt b/app/src/main/java/com/example/shawarma/screens/discount/DiscountScreen.kt index acfe5d5..e3ededa 100644 --- a/app/src/main/java/com/example/shawarma/screens/discount/DiscountScreen.kt +++ b/app/src/main/java/com/example/shawarma/screens/discount/DiscountScreen.kt @@ -177,7 +177,7 @@ fun DiscountCard(product : ProductModel){ Button( onClick = { - product.id?.let { homeViewModel.addProductToCart(it, preferencesManager.getData("user_id", "null")) } + product.id?.let { homeViewModel.addProductToCart(it, preferencesManager.getData("token", "null")) } }, colors = ButtonDefaults.buttonColors( backgroundColor = MyLightYellow,