---
# System prepended metadata

title: Assingment logic

---

# Assingment logic

**Assignment.tsx**
Only one coupon will be active at a time

```mermaid

    flowchart TD
    A[Get assignment coupon \n current one = couponId T1] --> B[Check from local storage if user has submitted T1]
    
    B -->|false| B1{Show \n task + form}
    
    B1 -->|User fills form| C[Submit]
    C --> C1{Save to local storage \n user has submitted T1 }
    B --> |true| D{Show \n task + text 'Task completed'} 
    
```


