Spaces:
Running
Running
Update cointube.jsx
Browse files- cointube.jsx +4 -3
cointube.jsx
CHANGED
|
@@ -269,7 +269,8 @@ export default function App() {
|
|
| 269 |
<div className="flex flex-col items-end">
|
| 270 |
<span className="text-sm text-gray-400">{userProfile?.name || user?.email || 'Usuario'}</span>
|
| 271 |
<span className="text-lg font-bold text-yellow-400">
|
| 272 |
-
{
|
|
|
|
| 273 |
</span>
|
| 274 |
</div>
|
| 275 |
<button
|
|
@@ -402,7 +403,7 @@ function Leaderboard({ db, currentUserId }) {
|
|
| 402 |
</span>
|
| 403 |
</div>
|
| 404 |
<span className={`text-xl font-bold ${user.id === currentUserId ? 'text-yellow-200' : 'text-yellow-400'}`}>
|
| 405 |
-
{user.coins.toLocaleString()} 💰
|
| 406 |
</span>
|
| 407 |
</li>
|
| 408 |
))}
|
|
@@ -421,7 +422,7 @@ function GoalLocked({ coinGoal, currentCoins }) {
|
|
| 421 |
¡Felicidades! Desbloqueaste la promoción por ver el video, pero el servicio requiere un mínimo de monedas.
|
| 422 |
</p>
|
| 423 |
<p className="text-gray-100 text-lg mt-4 font-semibold">
|
| 424 |
-
Acumulado: {currentCoins.toLocaleString()} / {coinGoal.toLocaleString()} Monedas
|
| 425 |
</p>
|
| 426 |
<p className="text-blue-400 text-sm mt-2 font-bold">
|
| 427 |
¡Debes seguir viendo videos hasta juntar {coinGoal.toLocaleString()} monedas!
|
|
|
|
| 269 |
<div className="flex flex-col items-end">
|
| 270 |
<span className="text-sm text-gray-400">{userProfile?.name || user?.email || 'Usuario'}</span>
|
| 271 |
<span className="text-lg font-bold text-yellow-400">
|
| 272 |
+
{/* CORREGIDO: Uso seguro de toLocaleString */}
|
| 273 |
+
{(userProfile?.coins || 0).toLocaleString()} Monedas
|
| 274 |
</span>
|
| 275 |
</div>
|
| 276 |
<button
|
|
|
|
| 403 |
</span>
|
| 404 |
</div>
|
| 405 |
<span className={`text-xl font-bold ${user.id === currentUserId ? 'text-yellow-200' : 'text-yellow-400'}`}>
|
| 406 |
+
{(user.coins || 0).toLocaleString()} 💰
|
| 407 |
</span>
|
| 408 |
</li>
|
| 409 |
))}
|
|
|
|
| 422 |
¡Felicidades! Desbloqueaste la promoción por ver el video, pero el servicio requiere un mínimo de monedas.
|
| 423 |
</p>
|
| 424 |
<p className="text-gray-100 text-lg mt-4 font-semibold">
|
| 425 |
+
Acumulado: {(currentCoins || 0).toLocaleString()} / {coinGoal.toLocaleString()} Monedas
|
| 426 |
</p>
|
| 427 |
<p className="text-blue-400 text-sm mt-2 font-bold">
|
| 428 |
¡Debes seguir viendo videos hasta juntar {coinGoal.toLocaleString()} monedas!
|