Usually most people only have one Switch so this never is a problem. However, if you've switched consoles and you didn't do System Transfer, you need to manually switch over the home console in order to get your offline play rights back.
Alternatively your partner may have explicitly set their home account to someone else's system. There's a mildly pirate-y[0] thing you can do with a friend where you log into your account on their system and they log into your system with their account, and then you have a shared game pool. In order to be able to play on your own account you need to swap the home console associations around so your friend's Switch is your home console and vice versa. But if you do this you can never play your own games on other accounts, since your friend's the one who took that half of the license.
[0] As in, it bends the rules of the DRM in ways Nintendo probably does not intend and thus probably violates a license agreement somewhere
Don't buy digital, it's never worth it.
If they are linked to a different Nintendo online account they need to buy their own copy of the game?
Maybe I'm wrong about that...
They are a lot more permissive with their digital copies than I expected, honestly.
There have been other games where this has been problematic (Animal crossing I think limited some features per device instead of per account).
Nintendo does a lot of stupid shit but this is one of the few things I think they have been really good about.
But they really love trying to squeeze every cent and milking their customers to a point where it's disgusting.
My partner purchased a the latest Zelda and I can't even play it on my account on the same device: I need to buy another copy of the game (which obviously will never happen).